<style type="text/css">
.box-product {
    width: 500px;
    padding: 20px;
    box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.33);
}
</style>
<div class="block-center" style="box-product">
	<h4>Package</h4>
	<p><?php echo $params['product']['package']['type'];?> - <small><?php echo $params['product']['package']['name'];?></small></p>
	<p><h3>product info</h3><?php echo nl2br($params['product']['note']);?></p>
	
	<?php if($params['product']['type'] == 'colo' && FALSE){?>
	<p>Net: <?php
	if($params['product']['net'] == 1){
		echo 'Direct Lick 100Mb';
	}
	else if($params['product']['net'] == 2){
		echo 'Share Lick 1Gb';
	}
	else if($params['product']['net'] == 3){
		echo 'Direct Lick 1Gb';
	}
	?></p>
	<p>ผู้ดูแลระบบ: <?php echo ($params['product']['admin'] == 1)? 'ใช่': 'ไม่';?></p>
	<p>ip: <?php $ips = array(); foreach ($params['product']['ip'] as $key => $value){ $ips[] =  $value['ip'];} echo implode(', ',$ips);?></p>
	
	<?php }else if($params['product']['type'] == 'vps'){?>
	
	<p>operating system: <?php 
	if($params['product']['os'] == 1) echo 'Unix';
	else if($params['product']['os'] == 2) echo 'Linux';
	else if($params['product']['os'] == 3) echo 'Window';
	?></p>
	
	<?php }else if($params['product']['type'] == 'hosting'){?>
	
	<!-- <p>serverName: <?php //echo $params['product']['serverName'];?></p> -->
	<p>domain: <?php echo $params['product']['domain'];?></p>
	
	<?php }?>
	
	<p style="padding-top: 20px;">วันหมดอายุ: <?php $dateTime = new DateTime($params['product']['dateTimeout']); echo $dateTime->format('j/m/Y');?></p>
	<p>สถานะ: <?php echo $params['product']['status']==1? 'ปกติ': 'ระงับการใช้งาน';?></p>
	
</div>